package top.lyunz.fangkeji.controller.web;



import org.apache.ibatis.javassist.expr.NewArray;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import top.lyunz.fangkeji.tools.SimpleResult;


@Controller
@RequestMapping("/redirect")
public class Redirect {
	/**
	 * 跳转到注册页面
	 * 
	 * @return
	 */
	@RequestMapping("/toregisteruser")
	public String toRedirect() {
		return "page/registeruser";

	}

	/**
	 * 跳转到登录页面
	 * 
	 * @return
	 */
	@RequestMapping("/tologin")
	public String tologin() {
		return "page/login";
	}

	/**
	 * 跳转到主页面
	 * 
	 * @return
	 */
	@RequestMapping("/tomain")
	public String tomain() {
		return "page/main";
	}



	/**
	 * 跳转到首页
	 * 
	 * @return
	 */
	@RequestMapping("/toindex")
	public String tonew() {
		return "page/index";
	}

	/**
	 * 跳转到忘记密码页面
	 * 
	 * @return
	 */
	@RequestMapping("/toupdpwd")
	public String toupdpwd() {
		return "page/updpwd";
	}

	/**
	 * 跳转到设备管理页面
	 * 
	 * @return
	 */
	@RequestMapping("/togetPageEquipments")
	public String togetAllEquipments() {
		return "page/equipmentManagement/equipment_list";
	}

	/**
	 * 跳转到设备添加页面
	 * 
	 * @return
	 */
	@RequestMapping("/toequipmentadd")
	public String toequipmentadd() {
		return "page/equipmentManagement/equipment_add";
	}

	/**
	 * 跳转到单位管理页面
	 * 
	 * @return
	 */
	@RequestMapping("/togetPageCompany")
	public String togetPageCompany() {
		return "page/companyManagement/company_list";
	}

	/**
	 * 跳转到添加单位页面
	 * 
	 * @return
	 */
	@RequestMapping("/toCompanyadd")
	public String toCompanyadd() {
		return "page/companyManagement/company_add";
	}

	/**
	 * 跳转到人员管理页面
	 * 
	 * @return
	 */
	@RequestMapping("/togetPageUser")
	public String togetPageUser() {
		return "page/staffManagement/user_list";
	}

	/**
	 * 跳转到添加人员页面
	 * 
	 * @return
	 */
	@RequestMapping("/touserAdd")
	public String touserAdd() {
		return "page/staffManagement/user_add";
	}

	/**
	 * 跳转到考勤设置页面
	 * 
	 * @return
	 */
	@RequestMapping("/toaTtendanceSetting")
	public String toaTtendanceSetting() {
		return "page/attendanceManagement/attendance_setting";
	}

	/**
	 * 跳转到个人信息页面
	 * 
	 * @return
	 */
	@RequestMapping("/topersonalDetails")
	public String personalDetails() {
		return "page/personalDetails/user_upd";
	}

	/**
	 * 
	 * 跳转到出入历史查询页面
	 * 
	 * @return
	 */
	@RequestMapping("/togetAlltravelRecords")
	public String togetAlltravelRecords() {
		return "page/dataQuery/AccessHistoryEnquiry";
	}

	/**
	 * 跳转到陌生记录查询页面
	 * 
	 * @return
	 */
	@RequestMapping("/togetAllstrangerRecordsPage")
	public String getAlltravelRecords() {
		return "page/dataQuery/getAllstrangerRecordsPage";
	}

	/**
	 * 跳转到考勤记录页面
	 * 
	 * @return
	 */
	@RequestMapping("/togetAttendanceRecord")
	public String togetAttendanceRecord() {
		return "page/attendanceManagement/getAttendanceRecord";
	}

	/**
	 * 跳转到我的通行记录页面
	 * 
	 * @return
	 */
	@RequestMapping("/toMyTravelRecord")
	public String toMyTravelRecord() {
		return "page/personalDetails/MyTravelRecord";
	}
	@RequestMapping("/sessionisnull")
	public @ResponseBody SimpleResult sessionisnull() {
		return new SimpleResult("0007", "sessionisnull", null);
	}
}
